//
//  DIYMenuButton.m
//  TripPlatformTest
//
//  Created by 陈曦 on 16/1/7.
//  Copyright © 2016年 chenxi. All rights reserved.
//

#import "DIYMenuButton.h"
#import "LoginViewController.h"
#import "RegisterViewController.h"
#import "Define.h"

#define kAccountViewSpace 50

@implementation DIYMenuButton

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
        UIView *bgView = [[UIView alloc] init];
        bgView.frame = self.frame;
        [self addSubview:bgView];
        
        self.nameplateImageView = [[UIImageView alloc] initWithFrame:CGRectMake(kScreenWidthTen / 2, kAccountViewSpace / 4, kAccountViewSpace / 2, kAccountViewSpace / 2)];
        [bgView addSubview:self.nameplateImageView];
        
        self.functionLabel = [[UILabel alloc] initWithFrame:CGRectMake(kScreenWidthTen * 2, kAccountViewSpace / 4, kScreenWidth / 2, kAccountViewSpace / 2)];
        self.functionLabel.textAlignment = NSTextAlignmentLeft;
        self.functionLabel.textColor = wordColor;
        self.functionLabel.font = [UIFont systemFontOfSize:15];
        [bgView addSubview:self.functionLabel];
        
        
    }
    return self;
}

@end
